package com.hxd.mall.injector.modules

import com.hxd.mall.injector.scope.ActivityScope
import com.hxd.mall.module.usercenter.fragment.FunsPageFragment
import com.hxd.mall.module.usercenter.funs.FunsManagerPresenter
import com.hxd.mall.module.usercenter.funs.IFunsManagerPresenter
import com.hxd.mall.module.usercenter.funs.IFunsManagerView
import dagger.Binds
import dagger.Module

/**
 * Created by qishuai on 2018/7/30.
 */
@Module
abstract class FunsPageFragmentModule {

    @Binds
    internal abstract fun bindView(pageFragment: FunsPageFragment): IFunsManagerView

    @ActivityScope
    @Binds
    abstract fun providePagePresenter(presenter: FunsManagerPresenter): IFunsManagerPresenter
}